GBML manual / Constants

MOSAIC_BANDS

Bands: stripes 8 rows tall, a blocky one then a sharp one, that crawl down the screen.

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

MOSAIC_BANDS: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names the bands, for screen_mosaic. The picture is blocky for 8 rows, sharp for 8 rows, blocky again, all the way down the screen, like a television that is going wrong. With a speed the stripes crawl up or down.

strength is how big the blocks are inside the blocky stripes: 1 makes them 2 pixels across, 2 makes them 4, and 3 makes them 8.

A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it - first sharp, then with MOSAIC_BANDS at strength 1, 2 and 3 (stripes 8 rows tall, a blocky one then a sharp one, the blocks bigger each time) - the stripes held in the same place each timeA real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it - first sharp, then with MOSAIC_BANDS at strength 1, 2 and 3 (stripes 8 rows tall, a blocky one then a sharp one, the blocks bigger each time) - the stripes held in the same place each time
A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it - first sharp, then with MOSAIC_BANDS at strength 1, 2 and 3 (stripes 8 rows tall, a blocky one then a sharp one, the blocks bigger each time) - the stripes held in the same place each time

The same picture four times: straight, then strength 1, 2 and 3 from left to right, each one standing still where the pattern had got to. Real pictures from a Game Boy Advance ROM.

speed is how many rows the pattern travels down the screen every frame. 0 holds it still, a negative number sends it up, 0.25 is slow and 1 is quick. The pattern belongs to the rows of the screen, not to the picture.

A real capture, 16 frames played in a loop - stripes of blocky and sharp forest crawl down the screen, while the lighthouse stays sharpA real capture, 16 frames played in a loop - stripes of blocky and sharp forest crawl down the screen, while the lighthouse stays sharp
A real capture, 16 frames played in a loop - stripes of blocky and sharp forest crawl down the screen, while the lighthouse stays sharp

The pattern moving, sped up: sixteen real pictures four frames apart, played 70 milliseconds each, at strength 3. It is a whole turn of the pattern, so the loop has no seam. This picture is an animated PNG; a viewer that cannot animate shows its first frame.

Example

pic = background_create(0, 0, ts_doc_dungeon);
background_blocky(pic, true);
screen_mosaic(MOSAIC_BANDS, 2, 0.5);

A picture that glitches in stripes. Call it once, for example when the room starts - it keeps going by itself until you call screen_mosaic(MOSAIC_NONE, 0, 0) or a room is loaded.

See also: screen_mosaicMOSAIC_NONEMOSAIC_DISSOLVE